package com.qf.smsplatform.config;

import com.qf.smsplatform.common.constants.RabbitMQConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {


    //1. 创建接口模块发消息到策略模块的队列
    @Bean
    public Queue preSendQueue(){
        return QueueBuilder.durable(RabbitMQConstants.TOPIC_PRE_SEND).build();
    }

}
